﻿using ElectronicSelling.BusinessLogic;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ElectronicSelling.UserControl
{
    public partial class NewestProduct : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GetNewestProduct();
            }
        }

        protected void GetNewestProduct()
        {
            DataTable dt = new DataTable();
            dt = HomeProductLogic.GetNewProduct();
            rptNewest.DataSource = dt;
            rptNewest.DataBind();
        }
    }
}